package com.lefeng.cockpit.common.bean.dto.meta;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;


@Data
public class MetaDTO {

    @ApiModelProperty(value = "数据源类型，MYSQL ORACLE")
    private String dsType;

    @ApiModelProperty(value = "表名")
    @NotNull(message = "数据表名不能为空")
    private String tableName;

    @ApiModelProperty(value = "数据源编号")
    @NotNull(message = "数据源ID不能为空")
    private Integer databaseSourceId;

}
